﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace HelenServer.Migrator;

[Table("zt_dept")]
[Index("Parent", Name = "parent")]
public partial class ZtDept
{
    [Key]
    [Column("id", TypeName = "mediumint(8) unsigned")]
    public uint Id { get; set; }

    [Column("name")]
    [StringLength(60)]
    public string Name { get; set; } = null!;

    [Column("parent", TypeName = "mediumint(8) unsigned")]
    public uint Parent { get; set; }

    [Column("manager")]
    [StringLength(30)]
    public string Manager { get; set; } = null!;
}